package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 采集商品拆分日志业务对象 erp_collect_product_split_log
 *
 * @author erp
 * @date 2023-07-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductSplitLogBo extends BaseEntity {

    /**
     * 采集商品拆分日志表
     */
    @NotNull(message = "采集商品拆分日志表不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 采集商品表
     */
    @NotNull(message = "采集商品表不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long collectProductId;

    /**
     * 拆分的商品的id
     */
    @NotNull(message = "拆分的商品的id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long splitProductId;

    /**
     * 拆分类型（1大包 2经普 3经特）
     */
    @NotNull(message = "拆分类型（1大包 2经普 3经特）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 拆分时间
     */
    @NotNull(message = "拆分时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date splitTime;


}
